/**
 * Created by wyy on 17-7-6.
 */
angular.module("tribalc", [
    'ui.router',
    'navBar',
    'leftBar',
    'footer',
    'alert',
    'leftAvaBar',
    'headBar',
    'apartmentDelect',
    'toolBar',
    'rentAgreement',
    'smartEquipment',
    'rentInfo'
]).config(['$locationProvider', '$stateProvider', '$urlRouterProvider', function ($locationProvider, $stateProvider, $urlRouterProvider) {

    $locationProvider.hashPrefix('');

    $urlRouterProvider.otherwise('');

    $stateProvider
        .state('login', {
            url: '',
            templateUrl: 'views/base/login.html'
        })
        .state('company', {
            url: '',
            templateUrl: 'views/company/base.html'
        })
        .state('company.companyApartmentManage', {
            url: '/company/apartmentmanage',
            templateUrl: 'views/company/apartmentmanage.html'

        })
        .state('company.companyApartmentInfo', {
            url: '/company/apartmentinfo/:apartmentId',
            templateUrl: 'views/company/apartmentinfo.html'
        })
        .state('company.companyaddApartmentInfo', {
            url: '/company/add_apartmentinfo',
            templateUrl: 'views/company/add_apartmentinfo.html'
        })
        .state('company.companyamendApartmentInfo', {
            url: '/company/amend_apartmentinfo/:apartmentId',
            templateUrl: 'views/company/amend_apartmentinfo.html'
        })
        .state('company.companyaddRentagreement', {
            url: '/company/add_rentagreement/:apartmentId',
            templateUrl: 'views/company/add_rentagreement.html'
        })
        .state('company.companyRentagreementDetail', {
            url: '/company/rent_agreement_detail/:apartmentId',
            templateUrl: 'views/company/rent_agreement_detail.html'
        })
        .state('company.companyRentpayment', {
            url: '/company/rent_payment/:apartmentId',
            templateUrl: 'views/company/rent_payment.html'
        })
        .state('company.companySmartEquipment', {
            url: '/company/smart_equipment/:apartmentId',
            templateUrl: 'views/company/smart_equipment.template.html'
        })
        .state('company.companyaddSmartEquipment', {
            url: '/company/add_smart_equipment/:apartmentId',
            templateUrl: 'views/company/add_smart_equipment.html'
        })
        .state('company.companySmartEquipmentDetail', {
            url: '/company/smart_equipment_detail/:apartmentId',
            templateUrl: 'views/company/smart_equipment_detail.html'
        });


}]);
